package com.zb.kl.common.exceptions;

/**
 * @date 2024/1/25 18:04
 * @author chenghuikang
 * @version 1.0
 * @description
 **/
public class CommonException extends RuntimeException {
    public CommonException(String message) {
        super(message);
    }

    public CommonException(String message, Throwable cause) {
        super(message, cause);
    }

    public static CommonException error(String message) {
        return new CommonException(message);
    }

    public static CommonException error(String message, Exception e) {
        return new CommonException(message, e);
    }
}
